/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-13 10:59:36
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-13 14:39:36
 * @别瞎看: 你个无脑牛马
 */
public class Test03{
    public static void main(String[] agrs){
        Animal a=new Animal();
        a.setName("动物a");
        a.setNum(10000);
        a.sayHello();
        System.out.println("-----------------下面是继承的对象---------------");
        Dog d=new Dog();
        d.setName("狗子d");
        d.setNum(100);
        d.color("黄色的大花");
        d.toString();
        System.out.println(d.toString());//输出数据类型和引用地址，位于Object类里
        d.sayHello();
        System.out.println("-----------------下面是super的内容---------------");
        Dog d1=new Dog();
        d1.showNum();
        d1.showNum(30);
    }   
}